CXXFLAGS=-Wall -Wextra -Werror -std=c++11 -Wno-unused-parameter
LDFLAGS=-lstdc++
CXX=g++
OUTDIR=bin
INCLUDEDIR=include
SOURCEDIR=source

main.exe: main.o
	$(CXX) -o $(OUTDIR)/main.exe main.o $(LDFLAGS)

main.o: $(SOURCEDIR)/main.cpp
	$(CXX) -c $(SOURCEDIR)/main.cpp -o main.o $(CXXFLAGS) -I$(INCLUDEDIR)


test: main.exe
	$(OUTDIR)/main.exe

clean: 
	rm -f *.o $(OUTDIR)/*.exe
